package com.mall.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品分页查询传输对象
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/23 22:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "商品分页查询传输对象")
public class ItemPageQueryDTO {
    @Schema(description = "页码")
    private Integer pageNo = 1;
    @Schema(description = "每页数量")
    private Integer pageSize = 10;
    @Schema(description = "商品分类id")
    private Long categoryId;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品状态")
    private Integer status;
    @Schema(description = "商品最小价格")
    private Double minPrice = 0.0;
    @Schema(description = "商品最大价格")
    private Double maxPrice = Double.MAX_VALUE;
    @Schema(description = "商品排序字段")
    private String sortFiled = "update_time";
    @Schema(description = "商品排序方式")
    private String sortOrder = "desc";
}
